<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>

<h1>登录</h1>
<hr>

<p style="color:red;" th:text="${msg}"></p>

<form th:action="@{/login}" method="post">
    <p>用户名: <label><input type="text" name="username"></label></p>
    <p>密码: <label><input type="password" name="password"></label></p>
    <p><input type="submit"></p>
</form>

</body>
</html>